<template>
  <div>
    <XtxButton @click="start">点我开始倒计时{{ time === 0 ? '' : time }}</XtxButton>
  </div>
</template>

<script setup lang="ts">
import { useCountDown } from '@/utils/hooks';

const { time, start } = useCountDown(10)
</script>

<style scoped>

</style>